<script>
	export default {
		// 此处globalData为了演示其作用，不是uView框架的一部分
		globalData: {
			
		},
		onLaunch() {
			// 1.1.0版本之前关于http拦截器代码，已平滑移动到/common/http.interceptor.js中
			// 注意，需要在/main.js中实例化Vue之后引入如下(详见文档说明)：
			// import httpInterceptor from '@/common/http.interceptor.js'
			// Vue.use(httpInterceptor, app)
			// process.env.VUE_APP_PLATFORM 为通过js判断平台名称的方法，结果分别如下：
			/**
			 * h5，app-plus(nvue下也为app-plus)，mp-weixin，mp-alipay......
			 */
		},
	}
</script>

<style lang="scss">
	@import "uview-ui/index.scss";
	@import "common/demo.scss";
	.flex {
		display: -webkit-flex;
		display: flex;
	}
	
	.flex-1 {
		flex: 1;
	}
	
	.flex-wrap {
		flex-wrap: wrap;
	}
	
	.flex-row {
		display: flex;
		flex-direction: row;
	}
	
	.flex-col {
		display: flex;
		flex-direction: column;
	}
	
	.flex-x-center {
		justify-content: center;
	}
	
	.flex-x-left {
		justify-content: flex-start;
	}
	
	.flex-x-right {
		justify-content: flex-end;
	}
	
	.flex-x-between {
		justify-content: space-between;
	}
	
	.flex-x-around {
		justify-content: space-around;
	}
	
	.flex-y-center {
		align-items: center;
	}
	
	.flex-y-top {
		align-items: flex-start;
	}
	
	.flex-y-top {
		align-items: flex-end;
	}
	
	.flex-center {
		display: flex;
		align-items: center;
		justify-content: center;
	}
	.flex-x-evenly{
		justify-content: space-evenly;
	}
	
	/* 单行省略 */
	.text-overflow {
		overflow: hidden;
		white-space: nowrap;
		text-overflow: ellipsis;
	}
	
	/* 超出两行省略 */
	.text-overflow2row {
		overflow: hidden;
		display: -webkit-box;
		display: box;
		-webkit-line-clamp: 2;
		line-clamp: 2;
		-webkit-box-orient: vertical;
		box-orient: vertical;
		word-break: break-all;
	}
	
	/* 文本字号 */
	.txt-size24 {
		font-size: 24rpx;
	}
	
	.txt-size26 {
		font-size: 26rpx;
	}
	
	.txt-size28 {
		font-size: 28rpx;
	}
	
	.txt-size30 {
		font-size: 30rpx;
	}
	
	.txt-size32 {
		font-size: 32rpx;
	}
	
	.txt-size36 {
		font-size: 36rpx;
	}
	
	.txt-size48 {
		font-size: 48rpx;
	}
	
	// 字重
	.txt-bold600 {
		font-weight: 600;
	}
	
	/* 字色 */
	.txt-color-3{
		color: #333;
	}
	.txt-color-6{
		color: #666;
	}
	.txt-color-9{
		color: #999;
	}
	.txt-color-e{
		color: #eee;
	}
</style>